package com.kaishengit.pojo;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;




@Entity
@Table(name="t_province")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class Province {
	private String id;
	private String province;
	private Set<City> citySet;
	@Id
	@GeneratedValue(generator="id")
	@GenericGenerator(name="id",strategy="uuid")
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	@Column(name="province")
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	@OneToMany(mappedBy="province")
	public Set<City> getCitySet() {
		return citySet;
	}
	public void setCitySet(Set<City> citySet) {
		this.citySet = citySet;
	}

}
